<template>
  <div>
    <el-dialog
      title="导入结果"
      center
      :visible.sync="dataReault.isShow"
      width="30%"
    >
      <span></span>
      <div class="center">
        <div style="color:red" v-if="dataReault.isSuccess">
          导入成功
        </div>
        <div style="color:red" v-if="!dataReault.isSuccess">导入失败</div>
        <div v-if="dataReault.isSuccess">
          导入成功{{ dataReault.importSucess }}条
        </div>
        <div v-if="dataReault.isSuccess && dataReault.type === 'uds'">
          去重{{ dataReault.cutCoyp }}条
        </div>
        <div v-if="!dataReault.isSuccess">
          {{ dataReault.importFail }}
        </div>
      </div>
      <span slot="footer" class="dialog-footer">
        <el-button @click="dataReault.isShow = false">取 消</el-button>
        <el-button type="primary" @click="dataReault.isShow = false"
          >确 定</el-button
        >
      </span>
    </el-dialog>
  </div>
</template>

<script>
export default {
  props: {
    dataReault: {
      type: Object,
      default: function() {
        return {
          isShow: false,
          type: 'dps',
          importSucess: '',
          cutCoyp: '',
          importFail: '',
          isSuccess: false
        }
      }
    }
  },
  data() {
    return {}
  },
  created() {},
  mounted() {},
  methods: {}
}
</script>

<style lang="less" scoped>
.center {
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}
</style>
